Lua/Events/Client/LocalPlayerExplosionHit
From JC2-MP Documentation
< Lua
Name | LocalPlayerExplosionHit |
---|---|
Arguments (in table) | Player attacker, number damage |
Return option | Return false to block damage. |
Description
Fired when you're hit by an explosion. attacker is not guaranteed to exist.
Examples
Foo = function(args) local message = tostring(args.attacker).." exploded you for "..tostring(args.damage).." damage!" Chat:Print(message, Color(255, 255, 255)) end Events:Subscribe("LocalPlayerExplosionHit", Foo)